package com.ruoyi.hotel.service;

import java.util.List;
import java.util.Map;

import com.ruoyi.hotel.domain.HotelOrder;

/**
 * 订单Service接口
 *
 * @author w
 * @date 2025-03-21
 */
public interface IHotelOrderService
{
    /**
     * 查询订单
     *
     * @param id 订单主键
     * @return 订单
     */
    public HotelOrder selectHotelOrderById(Long id);

    /**
     * 查询订单列表
     *
     * @param hotelOrder 订单
     * @return 订单集合
     */
    public List<HotelOrder> selectHotelOrderList(HotelOrder hotelOrder);

    /**
     * 新增订单
     *
     * @param hotelOrder 订单
     * @return 结果
     */
    public int insertHotelOrder(HotelOrder hotelOrder);

    /**
     * 修改订单
     *
     * @param hotelOrder 订单
     * @return 结果
     */
    public int updateHotelOrder(HotelOrder hotelOrder);

    /**
     * 批量删除订单
     *
     * @param ids 需要删除的订单主键集合
     * @return 结果
     */
    public int deleteHotelOrderByIds(Long[] ids);

    /**
     * 删除订单信息
     *
     * @param id 订单主键
     * @return 结果
     */
    public int deleteHotelOrderById(Long id);

    List<HotelOrder> selectAllRoom(HotelOrder order);

    int updateOrderStatusByRoomNum(HotelOrder hotelOrder);

    int completeOrder(HotelOrder hotelOrder);

    Map<String, Object> selectOrderFinishingRate(HotelOrder order);

    List<Map<String,Object>> selectRoomTypeOderCount(HotelOrder order);
}
